<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="UTF-8">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><%= h(yield(:title) || "衣评吧") %></title>
    <%= stylesheet_link_tag 'style' %>
    <%= javascript_include_tag 'jquery', 'application' %>
    <%= yield(:head) %>
  </head>

  <body>
    <div class="nav_bg">
      <div id="nav_top">
        <ul class="menu">
          <li class="icon_left"></li>
          <% if logged_in? %>
            <li><%= link_to current_user.nick_name, u_path(current_user) %></li>
            <li>|</li>
            <li><%= link_to "登出", logout_path, { :title => "登出" } %></li>
          <% else -%>
            <li><%= link_to '登录', login_path, { :title => "登录" } %></li>
            <li>|</li>
            <li><%= link_to '注册', signup_path, { :title => "注册" } %></li>
          <% end -%>
          <li class="icon_right"></li>
        </ul>
      </div>
    </div>

    <div id="wrapper">
      <div id="header">
        <div id="logo"><a href="/" class="logo"><!--<span style="visibility:hidden"><h1>hidoudou.com</h1></span>--></a></div>
        <div id="nav_menu">
          <ul id="main_menu" class="menu_drop">
            <li class="current" id="menu_home"><a href="/">首页</a></li>
            <li class="" id="menu_4"><a href="/category">分类</a></li>
            <li class="" id="menu_1"><a href="/styles">风格</a></li>
            <li class="" id="menu_2"><a href="/hot">热点</a><span class="dropper" style="display:block;margin-top:4px;width:16px;height:14px;background-image:url(../images/html_bg.gif);background-repeat:no-repeat;background-position:right -35px;float:left;"></span></li>
            <li id="menu_3"><a href="/brands">品牌</a></li>
          </ul>
          <div id="globalsearch">
            <form action="/search/" method="get" class="search_wrap empty">
              <span class="left"></span>
              <input value="关键字" autocomplete="off" class="search_pre" name="q" />
              <span class="right"></span>
              <div class="reset">搜索</div>
            </form>  
          </div>
        </div>
        <script type="text/javascript">
          //dropmenu.init([{name:'home', popup: false}, {name:'1', popup: false}, {name:'2'}, {name:'3', popup: false}], 'home');
        </script>
      </div><!-- header -->
      <div class="clear"></div>

      <%= yield %>

    </div><!-- wrapper -->
    <div class="clear"></div>

    <div id="footer">      
      <div class="footer_top">
        <span id="icp" class="fleft">
          <a href="#" class="link_01">关于本站</a>
          <a href="#" class="link_01">联系我们</a>
          <a href="#" class="link_01">免责声明</a>
          <a href="#" class="link_01">帮助中心</a>
          <a href="#" class="link_01">品牌女装</a>
        </span>
        <span class="fright">© 2010－2010 hidoudou.com, all rights reserved</span>
      </div>
      <div class="clear"></div>
      <div class="footer_bottom"><div class="bottom_l"></div><div class="bottom_r"></div></div>
    </div>
  </body>
</html>
